package cn.iocoder.devlop.module.annual.report.subcapital.dal;

import cn.iocoder.devlop.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.devlop.framework.mybatis.core.query.MPJLambdaWrapperX;
import cn.iocoder.devlop.module.annual.report.subcapital.dal.dataobject.SubcapitalDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 年报股东及出资 Mapper
 *
 * @author 超级管理员
 */
@Mapper
public interface SubcapitalMapper extends BaseMapperX<SubcapitalDO> {

    default List<SubcapitalDO> selectListByAncheid(@Param("ancheid") String ancheid) {
        MPJLambdaWrapperX<SubcapitalDO> wrapperX = new MPJLambdaWrapperX<>();
        wrapperX.selectAll(SubcapitalDO.class)
                .disableSubLogicDel()
                .eq(SubcapitalDO::getAncheid, ancheid);
        return selectJoinList(SubcapitalDO.class, wrapperX);
    }

}
